package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.User;
import org.apache.ibatis.annotations.Param;

public interface UserDao {
    //根据用户名获取User对象
    User findByUsername(String username);

    Page<User> findByCondition(String queryString);

    User findByRoleId(Integer id);

    void checkPassword(@Param("username") String username, @Param("password") String password);
}